﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MKIB3Game
{
    public class MapCell
    {
        private int row;
        private int col; 
        List<MapCellPropertyEnum> propList;
        // verdreht
        public MapCell(int col, int row, List<MapCellPropertyEnum> cellPropertyList)
        {
            if (cellPropertyList == null)
                throw new NullReferenceException("cellpropertylist must not be null");
            setRow(row);
            setCol(col);
            this.setCellPropertyList(cellPropertyList);
        }

        public void setCellPropertyList(List<MapCellPropertyEnum> cellPropertyArrayList)
        {
            if (cellPropertyArrayList == null)
                throw new NullReferenceException("cellpropertylist must not be null");
            this.propList = cellPropertyArrayList; 
        }

        public List<MapCellPropertyEnum> getCellPropertyArrayList()
        { 
            return this.propList;
        }
         
        public void setCol(int col)
        {
            this.col = col;
        }

        public int getCol()
        {
            return this.col;
        }

        public void setRow(int row)
        {
            this.row = row;
        }

        public int getRow()
        {
            return this.row;
        }
    }
}
